package com.kingwang.demo.springsecuritytokendemo.security;

import java.time.LocalDateTime;

/**
 * 抽象TokenSession，用于存放公共方法逻辑
 */
public abstract class AbstractTokenSession implements TokenSession {
    private String username;

    private LocalDateTime lastActiveTime;

    @Override
    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public LocalDateTime getLastActiveTime() {
        return this.lastActiveTime;
    }

    public void setLastActiveTime(LocalDateTime lastActiveTime) {
        this.lastActiveTime = lastActiveTime;
    }
}
